package com.fleafinder;

public class CommonConstants {
	public static final String ENCODING_UTF_8 = "UTF-8";

	public static final String LINK_MARKET_TYPE_LIST = "http://fleafinder.dk/index.php?option=com_hlproduct&view=mobile&rdata=markedtypelist";

	public static final String LINK_CATEGORY_LIST = "http://fleafinder.dk/index.php?option=com_hlproduct&view=mobile&rdata=categorylist";

	public static final String LINK_MARKET_INFO = "http://fleafinder.dk/index.php?option=com_hlproduct&view=mobile&rdata=marked_info&marked=%d";

	public static final String LINK_VIEW_ALL = "http://fleafinder.dk/index.php?option=com_hlproduct&view=mobile&rdata=randommarkeder&page_size=%d&page_num=%d";

	public static final String LINK_TOP_MARKEDERS = "http://fleafinder.dk/index.php?option=com_hlproduct&view=mobile&rdata=topmarkeder&page_size=%d&page_num=%d";

	public static final String LINK_DEFAULT_FACEBOOK = "https://www.facebook.com/pages/Fleafinder/428740600481849";

	public static final String LINK_LOAD_NEW_MARKETS = "http://fleafinder.dk/index.php?option=com_hlproduct&view=mobile&rdata=randommarkeder&lastloaded=%s";
	public static final String LINK_LOAD_NEW_MARKETS_PARAM = "%d-%d-%d %d:%d:%d"; // year-month-day
																					// hour-minute-second
	public static final String LINK_GMAP = "https://maps.google.com/maps?saddr=%s&daddr=%s&t=m&z=12"; // start adress
	
	public static final String START_ADRESS_PARAM = "%s, %s, %s"; // road, city, country

	public static final String END_ADRESS_PARAM = "%s,%s"; // latitude,longitude
	
	public static final String GOOGLE_MAP_API = "http://maps.googleapis.com/maps/api/geocode/xml?address=%s&sensor=false";

	public static final String COUNTRY = "Denmark";

	public static final String LINK_WEBSITE = "http://fleafinder.dk/";
	public static final String LINK_PRODUCTS_ON_WEBSITE = "http://fleafinder.dk/images/download_ip.png";

	public static final String DATE_FORMAT = "dd.MM.yy";

	public static final String TXT_TODAY = "I dag";

	public static final String TXT_TOMORROW = "I morgen";

	public static final String HOME_FRAGMENT ="HOME_FRAGMENT";
	public static final String TOP_FRAGMENT = "TOP_FRAGMENT";
	public static final String MAP_FRAGMENT ="MAP_FRAGMENT";
	public static final String OPEN_FRAGMENT = "OPEN_FRAGMENT";
	
	public static final String HTTP = "http://";
	public static final String HTTPS = "https://";
	
	public static final String MARKETLIST_EMPTY_ALERT = "Vi fandt desv�rre ikke markeder.\nPr�v igen senere, tak";
	
	public static final int DEFAULT_PAGE_SIZE = 50;

	public static final int TIME_INTERVAL_TO_RELOAD_MARKET_LIST = 5 * 60 * 1000; // 5 minutes 
																				// seconds
	public static final int TIME_INTERVAL_TO_RELOAD_MARKET = 30 * 1000; // 30
																			// seconds

	public static final int MILLISECONDS_IN_DAY = 1000 * 60 * 60 * 24;

	public static final int DEFAULT_SLEEP_TIME = 1000;

	public static final int DEFAULT_CONNECTION_TIME_OUT = 3000;

	public static final String VIEW_ALL = "Vis Alle";
	public static final int VIEW_ALL_ID = -1;

	public static final String PLUS_SIGN = "+";

	public static final int MARKETTYPE_AND_CATEGORY = 1;
	public static final int MARKETTYPE_AND_VISALLE = 2;
	public static final int ALL_MARKETTYPE = 3;
	public static final int TOP_MARKEDER = 4;
	
	public static final int MAX_EXPECTED_HEIGHT_OF_TABLE = 300;


	public static final int TAB_HOME = 1;
	public static final int TAB_TOPMARKET = 2;
	public static final int TAB_MAP = 3;
	public static final int TAB_OPENMARKET = 4;
	
	public static final int MAX_TIMES_LOADING_LOCATION = 3;
}
